package com.huike.contract.mapper;

import com.huike.contract.domain.TbContract;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huike.contract.domain.dto.TbContractDTO;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author 93238
* @description 针对表【tb_contract(合同)】的数据库操作Mapper
* @createDate 2023-10-12 06:42:55
* @Entity com.huike.contract.domain.TbContract
*/
public interface TbContractMapper extends BaseMapper<TbContract> {

    /**
     * 合同列表
     * @param tbContractDTO
     * @return
     */
    List<TbContractDTO> selectTbContract(TbContractDTO tbContractDTO);

    /**
     * 新增合同
     * @param tbContract
     * @return
     */
    int insertTbContract(TbContract tbContract);

    /**
     * 渠道统计
     * @param beginCreateTime
     * @param endCreateTime
     * @return
     */
    @MapKey("")
    List<Map<String, Object>> chanelStatistics(@Param("beginCreateTime") String beginCreateTime,
                                               @Param("endCreateTime")String endCreateTime);

    /**
     * 渠道统计-活动统计
     * @param beginCreateTime
     * @param endCreateTime
     * @return
     */
    @MapKey("")
    List<Map<String, Object>> activityStatistics(String beginCreateTime, String endCreateTime);

    /**
     * 活动详情列表
     * @param tbContract
     * @return
     */
}




